public class Circle extends Graphics{
    private double radius;
    static double pi=3.1415926535;
    public Circle(String name, double radius) {
        super(name);
        this.radius = radius;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    @Override
    public double areaCalculate() {
        return pi*getRadius()*getRadius();
    }

    @Override
    public double circumCalculate() {
        return pi*getRadius()*2;
    }
}